package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

//静态路由
//效果就是直接访问http://localhost/login可以调用到login-service中的controller  服务器端,可以不写端口

//动态路由   加上了服务名称
//http://localhost/login-server/login
@SpringBootApplication
@EnableEurekaClient
public class GateWayApplication {

	public static void main(String[] args) {
		SpringApplication.run(GateWayApplication.class, args);
	}

}
